package com.golxen.framework.db.dao;


import com.golxen.framework.db.DBManager;
import com.golxen.utils.LogUtil;
import com.mysql.cj.util.LogUtils;
import org.slf4j.Logger;

import java.sql.PreparedStatement;
import java.sql.ResultSet;

public abstract class AbstractDaoImpl {
	protected static Logger logger = LogUtil.DB;

	private final DBManager db;

	public AbstractDaoImpl() {
		db = new DBManager();
	}

	public DBManager getDb() {
		return this.db;
	}

	public void closePageConnection(PreparedStatement call, ResultSet rs) {
		getDb().closeConnection(call, rs);
	}

}
